import logging


def print_console_and_log_error(content):
    logging.error(f"Business ERROR: {content}\n")


def print_console_and_log_info(content):
    logging.info(f"Business INFO: {content}\n")


def log2Console(signal_self=None, content=None):
    if signal_self is not None:
        signal_self.emit(content)
        logging.info(f"Purchase desc: {content} \n")
